﻿using AyaWo.Entity;
using DbEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
   public class worldsService : BaseService
    {
        /// <summary>
        /// 获取随机数据
        /// </summary>
        /// <returns></returns>
        public List<worlds> GetRuandList()
        {
            string sqlStr = "select * from worlds order by rand() LIMIT 100";
            return Db.GetDataListBySqL<worlds>(new StringBuilder(sqlStr));
        }
    }
}
